*Table 2: Gender Gaps and the Inverse of Competitiveness*
clear all
use Clean_data, clear


***************************T2. GENDEREMF_byYEARS***************
gen femalexcomp= female * inv_competNOQUOTA

reg dropout female femalexcomp z_GPA i.year  if degree=="M"  & z_GPA!=. & foreign==0, robust cformat(%9.4f)

*Z_answered, z_Test_Correct, 
global test_ z_answered z_test_correct 

foreach x in $test_ {
reg `x' female femalexcomp z_GPA i.year   if degree=="M" & test==1 & (year<1987 | year>1988) & z_GPA!=. & foreign==0 , robust
}

global notest_ z_test_points z_total_points position

foreach x in $notest_ {
reg `x' female femalexcomp z_GPA i.year  if degree=="M" & test==1  & z_GPA!=. & foreign==0, robust
}
